/*********************************************************************
* File: globals.cpp
*
* \brief World global variables.
*
* \author Instituto Superior Tecnico de Lisboa, Portugal
* \author Technical University of Lisbon, Portugal
* 
* \author Agentes Autonomos e Sistemas Multiagente
* \author Autonomous Agents and Multiagent Systems
* 
* \version	1.0
* \date		2006/2007
*********************************************************************/
#include "globals.h"
using namespace game;

World* game::g_world;
float game::g_frameDuration = 0.0;
float game::g_previousFrameTime = -1.0;
int game::g_msecVal = 0;

Weapon game::g_weaponDefinitions[MAX_WEAPONS];
WeaponInfo game::g_weapons[NUM_WEAPONS + 11] = {
   {WeaponIds::knife,		"weapon_knife",		"knife.mdl",		0},
   {WeaponIds::glock18,		"weapon_glock18",	"glock18.mdl",		400},
   {WeaponIds::usp,			"weapon_usp",		"usp.mdl",			500},
   {WeaponIds::p228,		"weapon_p228",		"p228.mdl",			600},
   {WeaponIds::dEagle,		"weapon_deagle",	"deagle.mdl",		650},
   {WeaponIds::fiveSeven,	"weapon_fiveseven",	"fiveseven.mdl",	750},
   {WeaponIds::elite,		"weapon_elite",		"elite.mdl",		800},
   {WeaponIds::m3,			"weapon_m3",		"m3.mdl",			1700},
   {WeaponIds::xm1014,		"weapon_xm1014",	"xm1014.mdl",		3000},
   {WeaponIds::tmp,			"weapon_tmp",		"tmp.mdl",			1250},
   {WeaponIds::mac10,		"weapon_mac10",		"mac10.mdl",		1400},
   {WeaponIds::mp5Navy,		"weapon_mp5navy",	"mp5navy.mdl",		1500},
   {WeaponIds::ump45,		"weapon_ump45",		"ump45.mdl",		1700},
   {WeaponIds::p90,			"weapon_p90",		"p90.mdl",			2350},
   {WeaponIds::galil,		"weapon_galil",		"galil.mdl",		2000},
   {WeaponIds::famas,		"weapon_famas",		"famas.mdl",		2250},
   {WeaponIds::ak47,		"weapon_ak47",		"ak47.mdl",			2500},
   {WeaponIds::scout,		"weapon_scout",		"scout.mdl",		2750},
   {WeaponIds::m4A1,		"weapon_m4a1",		"m4a1.mdl",			3100},
   {WeaponIds::aug,			"weapon_aug",		"aug.mdl",			3500},
   {WeaponIds::sg550,		"weapon_sg550",		"sg550.mdl",		4200},
   {WeaponIds::sg552,		"weapon_sg552",		"sg552.mdl",		4200},
   {WeaponIds::awp,			"weapon_awp",		"awp.mdl",			4750},
   {WeaponIds::g3Sg1,		"weapon_g3sg1",		"g3sg1.mdl",		5000},
   {WeaponIds::m249,		"weapon_m249",		"m249.mdl",			5750},
   {WeaponIds::flashBang,	"weapon_flashbang",	"flashbang.mdl",	200},
   {WeaponIds::heGrenade,	"weapon_hegrenade",	"hegrenade.mdl",	300},
   {WeaponIds::smokeGrenade,"weapon_smokegrenade",	"smokegrenade.mdl",	300},
   {WeaponIds::shieldGun,	"weapon_shield",	"shield.mdl",		2200},
   {WeaponIds::c4,			"weapon_c4",		"c4.mdl",			0},
   {WeaponIds::defuser,		"weapon_defuser",	"defuse.mdl" /*Unconfirmed*/,					200},
   {WeaponIds::nightVisionGoggles,		"weapon_nightvisiongoggles",	"nightvisiongoggles.mdl" /*Unconfirmed*/,	1250},
   {WeaponIds::ammoPrimary,	"weapon_ammoprimary",	"ammoprimary.mdl" /*Unconfirmed*/,			0},
   {WeaponIds::ammoSecondary,	"weapon_ammosecondary",	"ammosecondary.mdl" /*Unconfirmed*/,	20},
   {WeaponIds::vest,		"weapon_vest",	"vest.mdl" /*Unconfirmed*/,							650},
   {WeaponIds::vestHelm,	"weapon_vesthelm",	"vesthelm.mdl" /*Unconfirmed*/,					1000},
   {WeaponIds::null, "", 0}
};
